<?php
function do_footer($config, $mysqli, $time_start) {
?>
</div></div></div>
<div id="footer">
<div id="bottomnav"><a href = "<?php echo $config->siteurl?>">Home</a> | <a href = "about.php">About</a> | <a href = "contact.php">Contact</a></div>
<div id="pageinfo"><div class="leftinfo">
<?php
$stmt = $mysqli->prepare("SELECT count FROM `site`");  // Retrieve current 'hitcount'
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();
$count++;
echo $count,' ',$config->countermessage;  // Display hitcount
if($config->updatecounter != 0){
    $stmt = $mysqli->prepare("UPDATE `site` SET `count` =?");    //Update incremented count
    $stmt->bind_param('i',$count);
    $stmt->execute();
    $stmt->close();
}
?>
</div><div class="centerinfo">
 <a class="validhtml" href="http://validator.w3.org/check?uri=referer"></a>
 <a class="validcss" href="http://jigsaw.w3.org/css-validator/check/referer"></a>
</div><div class="rightinfo">
<?php
$time_end = microtime_float();
$time = round($time_end - $time_start, 4);
echo 'Page generated in ',$time,' seconds';
?>
</div>
</div>
</div>
</body>
</html>
<?php }?>
